Skip to content

fix: clear remaining ruff baseline errors on main#223

Merged
lauraluebbert merged 6 commits into
mainfrom
fix/ruff-d205-utils
Jun 22, 2026
Merged

fix: clear remaining ruff baseline errors on main#223
lauraluebbert merged 6 commits into
mainfrom
fix/ruff-d205-utils

Conversation

@lauraluebbert

@lauraluebbert lauraluebbert commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

After pre-commit.ci's autofix cleared the bulk of the ruff baseline, 7 unfixable errors remained — the same set PR #222 also addresses. This PR applies the fixes on main so the baseline is at zero independent of PR #222's merge order.

After this PR, ruff check gget/ reports 0 errors.

What was wrong

  • D205 in gget/gget_g2p.py:22 — multi-line docstring summary without the required blank line before the description body.
  • E402 in gget/main.py:33,42–46 — module-level imports for g2p, ref, search, seq, setup, virus without the # noqa: E402 comment that the surrounding imports carry. main.py has executable code (dt_string = datetime.now()) above the import block, so every later import needs the noqa.

What changed

  • gget/gget_g2p.py: collapsed the multi-line summary into one line + paragraph break.
  • gget/main.py: added # noqa: E402 to the 6 imports; dropped the now-stale # Module functions comment that was splitting one alphabetical list into two.

lauraluebbert and others added 3 commits June 22, 2026 13:11
Multi-line summary lacked a blank line before the description body.
Collapse to a single-line summary, then explanatory paragraph.

Flagged by pre-commit.ci on PR #222 — not specific to that PR, but
the same lint check would block every future PR until cleared.
After pre-commit.ci's autofix commit (af9fae7) cleared the bulk
of the baseline, 7 unfixable errors remained — same set of
violations that PR #222 also carries. Apply the same fix here so
main is ruff-clean independently of PR #222's merge:

- gget_g2p.py: collapse the multi-line docstring summary into a
  single line + paragraph break (ruff D205).
- main.py: add # noqa: E402 to the 6 module-function imports
  (g2p, ref, search, seq, setup, virus). main.py has executable
  code (dt_string assignment) above the import block, so every
  later import needs the noqa. Drops the now-redundant
  "# Module functions" comment that was splitting one
  alphabetical list into two.

After this commit, `ruff check gget/` reports zero errors, so
new PRs no longer inherit a ruff failure on pre-commit.ci.
@lauraluebbert lauraluebbert changed the title fix(utils): ruff D205 in diagnose_binary_load_error docstring fix: clear remaining ruff baseline errors on main Jun 22, 2026
lauraluebbert and others added 3 commits June 22, 2026 13:31
The exclude block listed tests/pytest_results_py.*\.txt — the per-
Python report filename that was used before commit 244d4d2
consolidated CI to a single tests/pytest_results.txt. The new
filename doesn't match the old pattern, so pre-commit was
processing the autogenerated report and trimming its trailing
whitespace on every run (see autofix commit af9fae7 in this PR).

Widen the pattern to tests/pytest_results.*\.txt so it covers both
the current canonical name and any future variant.

Pre-existing whitespace changes to tests/pytest_results.txt are
left as-is — CI rewrites the file on every scheduled run anyway,
so the diff is ephemeral.
@codecov-commenter

codecov-commenter commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.81818% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.04%. Comparing base (e34d699) to head (fcb2f67).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
gget/gget_g2p.py 50.00% 2 Missing ⚠️
gget/gget_muscle.py 0.00% 1 Missing ⚠️
gget/gget_setup.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #223      +/-   ##
==========================================
- Coverage   56.41%   56.04%   -0.38%     
==========================================
  Files          29       29              
  Lines        9228     9229       +1     
==========================================
- Hits         5206     5172      -34     
- Misses       4022     4057      +35     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lauraluebbert
lauraluebbert merged commit 09b1317 into main Jun 22, 2026
6 of 7 checks passed
@lauraluebbert
lauraluebbert deleted the fix/ruff-d205-utils branch June 22, 2026 18:15
lauraluebbert added a commit that referenced this pull request Jun 22, 2026
…t main bot commits

# Conflicts:
#	.github/badges/tests.json
#	tests/pytest_results.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants